package cn.zjh.basic.mapper;

import cn.zjh.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    List<T> findAll();
    T findOne(Long id);

    void save(T t);
    void del(Long id);
    void upDate(T t);

    Long queryCount(BaseQuery baseQuery);
    List<T> queryData(BaseQuery baseQuery);

    void patchDelete(Long[] ids);

}
